import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/index'
import VueLazyload from 'vue-lazyload'
import { Button } from 'mint-ui';
import './mock/mockServer' //加载mockServer即可
import loading from './common/imgs/loading.gif'
import './filters/index'

Vue.config.productionTip = false
Vue.use(VueLazyload, { //内部自定义了一个指令lazy
  loading
})
//注册全局组件标签
Vue.component(Button.name, Button); //<mt-button></mt-button>
/* eslint-disable no-new */
// new Vue({
//   el: '#app',
//   router,
//   components: { App },
//   template: '<App/>'
// })
new Vue({
  el:"#app",
  router, //挂载路由
  render:h => h(App),
  store, //挂载store,
  mounted() {
    console.log(this);
  },
})